home *** CD-ROM | disk | FTP | other *** search
- --on exitFrame
- -- global gLastSprite, gTimer, gWhereToReturn
- --
- -- if rollover(23) then --check for restart
- -- puppetsprite 23,true
- -- set the castnum of sprite 23 to 65
- -- else
- -- if not(the mouseDown) then puppetsprite 23, false
- -- end if
- --
- -- repeat with i = 11 to 16 -- button channels
- -- if rollover(i) then
- -- put i into RollSprite
- -- if RollSprite = gLastSprite then
- -- exit repeat
- -- else
- -- puppetSound 2, getAt(["qv210.aif","p70.aif","v70.aif","p50.aif","v50.aif","140.aif"], i-10)
- -- puppetsprite i,true
- -- puppetsprite 10,true
- -- put the castnum of sprite(i) into lastcast
- -- set the castnum of sprite(i) to lastcast + 1
- -- updateStage
- -- set the castnum of sprite(10) to lastcast - 1
- -- puppetTransition 26, 1, 1
- -- exit repeat
- -- end if
- -- end if
- -- end repeat
- --
- -- if gLastSprite<>RollSprite then
- -- puppetsprite gLastSprite, false
- -- updateStage
- -- if not(rollover(gLastSprite)) then
- -- sound stop 2
- -- puppetsprite 10, false
- -- --puppetTransition 01, 1, 20
- -- end if
- -- put RollSprite into gLastSprite
- -- end if
- --
- -- if (the ticks > gTimer + 60*60) and (the lastEvent > 60*60)then
- -- if the castNum of sprite 48 then pauseMovie
- -- if soundBusy(1) then sound stop 1
- -- clearSprites
- -- go gWhereToReturn-1
- -- else
- -- go to the frame
- -- end if
- --
- --end
-